package game.source.gui.hud;

import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

public class WinGame {
	private static Font			font;
	private static final int	font_tam = 200;


	static{
		WinGame.font = new Font("Trebuchet MS", Font.BOLD, WinGame.font_tam);
	}

	public static void show(Graphics2D graphic, int panelWidth, int panelHeight){
		FontMetrics metrics;
		graphic.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
		graphic.setFont(WinGame.font);
		metrics = graphic.getFontMetrics();
		int desX = metrics.stringWidth("Winner");
		graphic.drawString("Winner", panelWidth/2-desX/2, panelHeight/2);
	}


}
